package com.healthcloud.service;


import com.healthcloud.entity.IntegralDetail;
import com.healthcloud.utils.PageParam;

import java.util.Date;
import java.util.List;

/**
 * @author zhangjie
 */
public interface IntegralDetailService {

    /**
     * @param sn
     * @return
     */
    List<IntegralDetail> queryBySnToday(String sn);

    /**
     * 查询某天的设备积分
     *
     * @param sn
     * @param testTime
     * @return
     */
    List<IntegralDetail> queryBySnAndTestTime(String sn, Date testTime);


    void save(IntegralDetail detail);

    List<IntegralDetail> listByMasterId(Integer masterId, PageParam pageParam);

    Integer countByMasterId(Integer masterId);
}
